#version 450

layout(location = 0) in vec3 position;
layout(location = 1) in vec4 color;
layout(set = 1, binding = 0) uniform MVP {
	mat4 model;
	mat4 view;
	mat4 proj;
	vec2 offset;
};
layout(set = 1, binding = 1) uniform PointParams {
	float pointSize;
};

layout(location = 0) out vec4 fragColor;

void main() {
	fragColor = color;
	gl_PointSize = pointSize;
	gl_Position = proj * view * model * vec4(position, 1.0);
}